#pragma once
#ifndef __SNAKE_H__
#define __SNAKE_H__
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#define WIDE 80
#define    HIGH 30
#define _CTR_SECURE_NO_WARNINGS
#include "windows.h"
#include "conio.h"
struct BODY
{
    int X;
    int Y;
}
body;
struct snake {
    struct BODY(body)[WIDE * HIGH];
    int size;
}
snake;
struct Food
{
    int X;
    int Y;
}
Food;
int score = 0;
int kx = 0;
int ky = 0;
int lastx = 0;
int lasty = 0;
int t = 200;
int i;
int j;
void initSnake(void);
void initfood(void);
void initUI(void);
void initWall(void);
void playgame(void);
void showScore(void);
#endif